let driverID = null as number;


// #ifdef H5
const id = Number.parseInt(uni.getStorageSync('driverID'));
if (!Number.isNaN(id)) {
  driverID = id;
}
// #endif

function getDriverID() {
  return uni.getStorageSync('driver_ID') ? uni.getStorageSync('driver_ID') : driverID;
}
function setDriverID(value : number) {
  uni.setStorageSync('driverID', value);
  driverID = value;
}
export { getDriverID, setDriverID};